package com.macro.mall.bean.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value = "ID生成请求报文")
public class IdGeneratorVO {

    @ApiModelProperty(value = "用户Id", required = true, position = 1)
    private Long userId;

    @ApiModelProperty(value = "业务编码 \n业务编码，用于区分流水的用途。比如大订单流水1000， 主订单流水1001 异常订单流水 1002 如果长度超过4位 截取末4位，不足4位前面补零凑够4位", required = true, position = 2)
    private String busiCode;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getBusiCode() {
        return busiCode;
    }

    public void setBusiCode(String busiCode) {
        this.busiCode = busiCode;
    }

    @Override
    public String toString() {
        return "IdGeneratorVO{" +
                "userId=" + userId +
                ", busiCode='" + busiCode + '\'' +
                '}';
    }
}
